/*
 * HMC6352.h
 *
 *  Created on: 2013/01/23
 *      Author: ishiwata
 */

#ifndef HMC6352_H_
#define HMC6352_H_

//#include "driver_config.h"
//#include "target_config.h"
#include "type.h"
//#include "i2c.h"
#include "ixbus.h"

#define HMC6352_ADDRESS	(0b0100001)

//外部変数。
extern volatile uint32_t I2CCount;
extern volatile uint8_t I2CMasterBuffer[IIC_BUFSIZE];
extern uint8_t I2CSlaveBuffer[IIC_BUFSIZE];
extern volatile uint32_t I2CMasterState;
extern volatile uint32_t I2CReadLength, I2CWriteLength;

// 関数プロトタイプ。
unsigned short read_hmc6352(void);
void calibrate_hmc6352(void);
void startCalibration_hmc6352(void);
void endCalibration_hmc6352(void);


#endif /* HMC6352_H_ */
